<script setup lang="ts">
import { useHomeStore } from '@/store'
import { storeToRefs } from 'pinia'

const homeStore = useHomeStore()
const { bannerList } = storeToRefs(homeStore)
const { getBannerList } = homeStore
getBannerList()
</script>

<template>
  <div class="home-banner">
    <XtxSlider :sliders="bannerList" auto-play />
  </div>
</template>

<style lang="less" scoped>
.home-banner {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
  width: 1240px;
  height: 500px;
}
</style>
